package com.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sailfish.utils.UtilsProperties;
import com.sailfish.utils.service.impl.UtilsServiceImpl;

@SpringBootApplication
@RestController
public class SpringbootStarterTestApplication {
	@Autowired
	private UtilsServiceImpl utilsServiceImpl;
	
	@Autowired
	private UtilsProperties utilsProperties;

	@RequestMapping("/")
	public String index() {
		return utilsServiceImpl.sayHello(utilsProperties);
	}

	public static void main(String[] args) {
		SpringApplication.run(SpringbootStarterTestApplication.class, args);
	}

}
